package com.yk.framework.gui.ctrl;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.GradientPaint;
import java.awt.Graphics;
import java.awt.Graphics2D;

import javax.swing.JPanel;

/**
 * @author lifetime
 * 
 */
@SuppressWarnings("serial")
public class YKStateBar extends JPanel {
	private Color bc = new Color(181,198,216);
	
	
	public YKStateBar() {
		this.setPreferredSize(new Dimension(800, 21));
	}
	
	protected void paintComponent(Graphics g) {
		super.paintComponent(g);
		Graphics2D g2 = (Graphics2D) g.create();
		GradientPaint p = new GradientPaint(0, 0, Color.white, 0, getHeight(), bc);
		g2.setPaint(p);
		g2.fillRect(0, 0, getWidth(), getHeight());
		g2.dispose();
	}
}
